Flashing ESP32 binaries without ESP-IDF
We can flash precompiled binary files with the matching configuration for the target hardware without having to have ESP-IDF. The tool that we are using is esptool.
Collect the required binary files from the
builddirectory.- With
ESP-IDF, set the correct configuration for the target device and build the source. The output will be written tobuilddirectory. - Copy the following binary files to a desired location:
build/bootloader/bootloader.binbuild/DeepVibe-Leaf-Node.bin(or this will be<your_project_name>.bin)build/partition_table/partition-table.bin
- With
Install the flashing tool. We are using
esptoolwhich can be installed via following command on Linuxpip install esptoolFlashing to
ESP32 EZSBCis done through following command.esptool.py --chip esp32 -p COM6 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 <path_to_your_bootloader.bin> 0x10000 <path_to_your_DeepVibe-Leaf-Node.bin> 0x8000 <path_to_your_partition-table.bin>noteIf you are trying to flash to another
ESP32device this should still work. But if it doesn't, we can obtain the correct parameter values to use foresptoolby keeping an eye on the command prompt for the exactesptoolcommand used whileflashingthroughESP-IDFin step #1.